{% extends 'base.html' %}
{% block title %}
<title>搜索结果</title>
{% endblock %}
{% block body %}
{% if query %}
        <h3>搜索结果如下：</h3>
        {% for result in page.object_list %}
            <a href="{% url 'main:search' book.object.id %}">{{ result.object.name }}</a><br/>
        {% empty %}
            <p>啥也没找到</p>
        {% endfor %}
    {% endif %}

{% endblock %}